home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swags_z.zip
/
STRINGS.SWG
/
0015_TIDYSTR.PAS.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
358b
|
23 lines
{
KELD R. HANSEN
}
PROCEDURE TidyString(VAR Str : String); ASSEMBLER;
ASM
LES DI,STR
XOR BH,BH
MOV BL,ES:[DI]
LEA DI,[DI+BX+1]
MOV SI,WORD PTR STR-2
NEG BX
LEA CX,[SI+BX]
XOR AL,AL
CLD
REP STOSB
END;
{
which fills up the garbage after the current string length with zeroes.
}